home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Corel CD Power Pak: Utilities
/
Corel CD Power Pak: Utilities.iso
/
setup
/
setup.ms_
/
setup.ms
Wrap
Text File
|
1993-11-13
|
50KB
|
1,678 lines
''
'' ┌──────────────────────────────────────────────────────────────┐
'' │ CorelSCSI! Ver. 2.0 │
'' ├──────────────────────────────────────────────────────────────┤
'' │ Setup Script Ver. 1.06 │
'' │ │
'' │ │
'' │ - SETUP Configuration file for Corel English Version │
'' │ │
'' │ - Created October 18, 1993. │
'' │ - Modified November 13, 1993 by S.R. │
'' │ │
'' ├──────────────────────────────────────────────────────────────┤
'' │ │
'' │ Copyright (C) 1993. Corel Corporation All Rights Reserved │
'' │ │
'' └──────────────────────────────────────────────────────────────┘
''
''''''$DEFINE DEBUG ''Define for script development/debugging
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
'' code to make the install the full screen
CONST WS_VISIBLE=&H10000000
CONST WS_BORDER =&H00800000
CONST WS_CLIPCHILDREN =&H02000000
CONST GWL_STYLE =-16
CONST SW_SHOWMAXIMIZED=3
DECLARE FUNCTION ShowWindow LIB "user.exe" (hWnd%,iShow%) AS INTEGER
DECLARE FUNCTION SetWindowLong LIB "user.exe" (hWnd%,offset%,style&) AS LONG
hWnd%=HwndFrame()
sti&=SetWindowLong(hWnd%,GWL_STYLE,WS_VISIBLE+WS_BORDER+WS_CLIPCHILDREN)
stj%=ShowWindow(hWnd%,SW_SHOWMAXIMIZED)
''OEM ID's
CONST OEM_UNIVERSAL = 1
CONST OEM_CDSTUFF = 2
CONST OEM_CORELBOOK = 4
CONST OEM_WINBACKUP = 8
CONST OEM_DOSBACKUP = 16
CONST OEM_WINTOOLS = 32
CONST OEM_DOSTOOLS = 64
CONST OEM_WINCONFIG = 128
CONST OEM_DOSCONFIG = 256
CONST OEM_TWAIN = 512
CONST CORELSCSI20 = 1
CONST CORELCDPAK = 2
CONST OEMVERSION = 3
CONST DISK = 1
CONST CD_DISK = 2
''────────────────────────────────────────────────────────────────────────────────
''
'' Set InstallType = CORELSCSI20 '' this is for the CorelSCSI 2.0 Setup.
'' = CORELCDPAK '' this is for the Corel CD PowerPak Setup.
'' = OEMVERSION '' this is for the OEM Setup Version.
''
'' Set InstallSet = 0 for CorelSCSI 2.0 and Corel CD PowerPak
'' InstallSet = ?? depends on what the OEM version is to have. Can choose
'' from the following :
'' OEM_UNIVERSAL, OEM_CDSTUFF, OEM_CORELBOOK, OEM_WINBACKUP,
'' OEM_DOSBACKUP, OEM_WINTOOLS, OEM_DOSTOOLS, OEM_WINCONFIG,
'' OEM_DOSCONFIG, OEM_TWAIN
'' for example, to OEM CorelBook, Windows Backup, and Windows Config then
'' InstallSet = OEM_CORELBOOK + OEM_WINBACKUP + OEM_WINCONFIG
''
'' DiskOrCD = DISK | CD_DISK FOR POWERPAK ONLY.
'' Set to DISK for the drivers install ONLY
'' Set to CD_DISK for the rest of the software from the CDROM
''
''
'' * NOTE * if you are using OEM make sure InstallType = OEMVERSION
''
''────────────────────────────────────────────────────────────────────────────────
CONST InstallType = CORELCDPAK '' this is for the Corel CD PowerPak Setup.
CONST InstallSet = 0
CONST DiskOrCD = CD_DISK '' this is for the CDROM disk version
GLOBAL OEM_NAME_PLATE$
OEM_NAME_PLATE$ = "Corel Version" '' 30 chars max
''Dialog ID's
CONST WELCOME = 300
CONST WLCMCD = 299 '' the PowerPak splash screen
CONST CUSTOMCD = 298 '' the PowerPak custom box
CONST PATHOK = 301
CONST PATHFND = 302
CONST CUSTOM = 303
CONST METHOD = 304
CONST ENDSCRN = 305
CONST QUIT = 306
CONST AUTOCNFG = 307
CONST PATHSCRN = 308
CONST README = 309
CONST READTXT = 310
CONST BADPATH = 312
CONST ASKQUIT = 314
CONST EXITSUCCESS = 316
CONST EXITFAILURE = 318
CONST EXITQUIT = 320
CONST DSKSPCE = 322
CONST TESTBACK = 324
CONST CHKSPCE = 326
CONST METHDHLP = 327
CONST CUSTMHLP = 328
CONST PATHHLP = 329
CONST ASPIDRVR = 330
CONST CHSECARD = 331
CONST FDTDC950 = 332
CONST CHSCDHLP = 333
CONST DEVHIGH = 334
CONST NOVSURE = 335
CONST ENDSCRN2 = 336
CONST OEMCARD = 337
CONST OEMLIST = 338
CONST OEMINFO = 339
CONST CDDEVHIGH = 340 '' powerpak dev high box
CONST DISKINFO = 341 '' powerpak Disk setup info box
CONST PTHFNDCD = 342 '' powerpak CD portion Found so install here
CONST CSTOMCD2 = 343
CONST MOSAIC = 344 '' Mosaic Confirm Box
CONST LSTDRV = 345
CONST LSTDRVHP = 346
CONST LSTDRVN = 347
''Billboards
CONST CONFIG1 = 350
CONST BACKUP1 = 352
CONST REGISTER = 354
CONST CDAUD2 = 356
CONST CDBASE = 357
''Bitmap ID nums for Billboards
CONST CONFIG1_BIT = 1050
CONST BACKUP1_BIT = 1055
CONST REGISTER_BIT = 1060
CONST CDAUD2_BIT = 1065
CONST CDBASE_BIT = 1070
''Bitmap ID
CONST CORELSCSI2_LOGO = 1
CONST CORELCDPAK_LOGO = 2
''File Types
CONST UNIFILES = 1
CONST CDFILES = 2
CONST CORELBOOKFILES = 3
CONST WIN_BACKUPFILES = 4
CONST WIN_TOOLSFILES = 5
CONST WIN_CONFIGFILES = 6
CONST WIN_TWAINFILES = 7
CONST WIN_MOSAICFILES = 7 '' same as the twain stuff
CONST DOS_BACKUPFILES = 8
CONST DOS_TOOLSFILES = 9
CONST DOS_CONFIGFILES = 10
CONST NECESSARY_FILES = 11
GLOBAL DEST$ ''Default destination directory.
GLOBAL FDCspecial$ ''MUST MATCH!!!! ~aspi.lst name
GLOBAL OEMDisk$ ''MUST MATCH!!!! Other name
GLOBAL OEMPATH$
GLOBAL REBOOT$ ''to reboot or not to reboot
GLOBAL OPTCUR$ ''Option selection from option dialog.
GLOBAL MosDir$ ''Location of old mosaic program, if found.
GLOBAL CHECKSTATES$
GLOBAL STATUSTEXT$
GLOBAL DRIVETEXT$
GLOBAL APPS%
GLOBAL DoTheMosaic%
GLOBAL UNINEED$
GLOBAL CDNEED$
GLOBAL CORELBOOKNEED$
GLOBAL WIN_BACKUPNEED$
GLOBAL WIN_TOOLSNEED$
GLOBAL WIN_CONFIGNEED$
GLOBAL WIN_TWAINNEED$
GLOBAL DOS_BACKUPNEED$
GLOBAL DOS_TOOLSNEED$
GLOBAL DOS_CONFIGNEED$
GLOBAL NECESSARY_NEED$
GLOBAL PCDMOSNEED$
GLOBAL EXTRACOSTS$
GLOBAL BIGLIST$
GLOBAL CORRUPT$
GLOBAL ERRORSTRING$
GLOBAL oldestpath$
GLOBAL CallBackDlg$
DECLARE SUB cpRegisterDefaults LIB "cpalette.dll"
DECLARE SUB DoBackGround
DECLARE SUB Install
DECLARE FUNCTION SetOEMText LIB "stv.dll" (sz$) AS INTEGER
DECLARE SUB AddOptFilesToCopyList (ftype%)
DECLARE SUB CheckPath
DECLARE FUNCTION RemSymbol LIB "stv.dll" (sz$) AS INTEGER
DECLARE SUB RecalcOptFiles (ftype%)
DECLARE SUB RecalcPath
DECLARE SUB SetDriveStatus
DECLARE SUB SetCheckStateList
DECLARE FUNCTION SetFullInstallSize LIB "stv.dll" (sz$) AS INTEGER
DECLARE FUNCTION CheckIfOEM LIB "stv.dll" (set%, against%) AS INTEGER
DECLARE FUNCTION SetBillBrdNum LIB "stv.dll" (num%) AS INTEGER
DECLARE FUNCTION SetDebugInfo LIB "stv.dll" () AS INTEGER
DECLARE FUNCTION KillScreenSave LIB "stv.dll" () AS INTEGER
DECLARE FUNCTION RestoreScreenSave LIB "stv.dll" () AS INTEGER
INIT:
'' nRc% = SetDebugInfo()
nRc% = KillScreenSave()
CUIDLL$ = "stv.dll" ''Custom user interface dll
FDCspecial$ = "FDC TMC-950 /W BIOS REV < 8.2" ''Must Match ~aspi.lst name all uppercase
OEMDisk$ = "OTHER (REQUIRES DISK FROM OEM...)" ''Must Match ~aspi.lst name all uppercase
CORRUPT$ = "Setup sources were corrupted, call Corel!"
ERRORSTRING$ = "Error"
IF InstallType = CORELCDPAK THEN '' takes care of the BITMAP LOGO (2 types)
SetBitmap CUIDLL$, CORELCDPAK_LOGO
SetTitle "Corel CD PowerPak! Setup"
ELSE
SetBitmap CUIDLL$, CORELSCSI2_LOGO